Integrand size = 26, antiderivative size = 60 \[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\frac {2 i a}{d \sqrt {e \cos (c+d x)}}+\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{d \sqrt {e \cos (c+d x)}} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3596, 3567, 3856, 2720} \[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{d \sqrt {e \cos (c+d x)}}+\frac {2 i a}{d \sqrt {e \cos (c+d x)}} \]
[In]
[Out]
Rule 2720
Rule 3567
Rule 3596
Rule 3856
Rubi steps \begin{align*} \text {integral}& = \frac {\int \sqrt {e \sec (c+d x)} (a+i a \tan (c+d x)) \, dx}{\sqrt {e \cos (c+d x)} \sqrt {e \sec (c+d x)}} \\ & = \frac {2 i a}{d \sqrt {e \cos (c+d x)}}+\frac {a \int \sqrt {e \sec (c+d x)} \, dx}{\sqrt {e \cos (c+d x)} \sqrt {e \sec (c+d x)}} \\ & = \frac {2 i a}{d \sqrt {e \cos (c+d x)}}+\frac {\left (a \sqrt {\cos (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{\sqrt {e \cos (c+d x)}} \\ & = \frac {2 i a}{d \sqrt {e \cos (c+d x)}}+\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{d \sqrt {e \cos (c+d x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 2.24 (sec) , antiderivative size = 143, normalized size of antiderivative = 2.38 \[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=-\frac {\sqrt {2} a \sqrt {e \cos (c+d x)} (-i+\cot (c)) \left (\sqrt {2} \sqrt {\csc ^2(c)}+i \cos (c+d x) \sqrt {1+\cos (2 d x-2 \arctan (\cot (c)))} \csc (c) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2(d x-\arctan (\cot (c)))\right ) \sec (d x-\arctan (\cot (c)))\right ) \sin (c) (\cos (d x)-i \sin (d x)) (-i+\tan (c+d x))}{d e \sqrt {\csc ^2(c)}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 3.06 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.22
method | result | size |
parts | \(\frac {2 a \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \operatorname {am}^{-1}\left (\frac {d x}{2}+\frac {c}{2}| \sqrt {2}\right )}{d \sqrt {e \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}}+\frac {2 i a}{d \sqrt {e \cos \left (d x +c \right )}}\) | \(73\) |
default | \(-\frac {2 \left (\sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}-i \sin \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a}{\sqrt {-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) e +e}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) d}\) | \(93\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.08 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.48 \[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=-\frac {2 \, {\left (-2 i \, \sqrt {\frac {1}{2}} \sqrt {e e^{\left (2 i \, d x + 2 i \, c\right )} + e} a e^{\left (\frac {1}{2} i \, d x + \frac {1}{2} i \, c\right )} + {\left (i \, \sqrt {2} a e^{\left (2 i \, d x + 2 i \, c\right )} + i \, \sqrt {2} a\right )} \sqrt {e} {\rm weierstrassPInverse}\left (-4, 0, e^{\left (i \, d x + i \, c\right )}\right )\right )}}{d e e^{\left (2 i \, d x + 2 i \, c\right )} + d e} \]
[In]
[Out]
\[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=i a \left (\int \left (- \frac {i}{\sqrt {e \cos {\left (c + d x \right )}}}\right )\, dx + \int \frac {\tan {\left (c + d x \right )}}{\sqrt {e \cos {\left (c + d x \right )}}}\, dx\right ) \]
[In]
[Out]
\[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\int { \frac {i \, a \tan \left (d x + c\right ) + a}{\sqrt {e \cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Time = 0.66 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.23 \[ \int \frac {a+i a \tan (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\frac {2\,a\,\sqrt {\cos \left (c+d\,x\right )}\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d\,\sqrt {e\,\cos \left (c+d\,x\right )}}+\frac {a\,\cos \left (c+d\,x\right )\,\sqrt {e\,\cos \left (c+d\,x\right )}\,4{}\mathrm {i}}{d\,e\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \]
[In]
[Out]